<?php
/**
 * Object Relational Persistence Mapping Class for table: in_payment_collection
 *
 * @package	core.ordo
 * @author	LHV
 */
class InPaymentCollection extends ORDataObject {

	/**#@+
	 * Fields of table: in_payment_collection mapped to class members
	 */
	var $in_payment_collection_id  = '';
	var $in_payment_id             = '';
	var $amount                    = '';
	var $cashier_id                = '';
	var $collection_time           = '';
	/**#@-*/


	/**
	 * DB Table
	 */
	var $_table = 'in_payment_collection';

	/**
	 * Primary Key
	 */
	var $_key = 'in_payment_collection_id';

	/**
	 * Internal Name
	 */
	var $_internalName = 'InPaymentCollection';

	/**
	 * Handle instantiation
	 */
	function InPaymentCollection() {
		parent::ORDataObject();
	}

	public function setData($paymentId, $amount, $cashier, $time) {
		$data =   array(
            'in_payment_id'     =>  $paymentId ,
            'amount'            =>  $amount,
            'cashier_id'        =>  $cashier,
            'collection_time'   =>  $time
		);
		$this->populateArray($data);
	}

}
?>
